home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 05.zip / BS1 part 5 / SASC_6.0_Disk_4.adf / Compiler_Headers / Include / libraries / mathresource.h < prev    next >
C/C++ Source or Header  |  1992-07-30  |  2KB  |  57 lines

  1. #ifndef    RESOURCES_MATHRESOURCE_H
  2. #define    RESOURCES_MATHRESOURCE_H
  3. /*
  4. **    $Filename: libraries/mathresource.h $
  5. **    $Release: 2.04 Includes, V37.4 $
  6. **    $Revision: 1.2 $
  7. **    $Date: 90/07/13 $
  8. **
  9. **    Data structure returned by OpenResource of:
  10. **    "MathIEEE.resource"
  11. **
  12. **
  13. **    (C) Copyright 1987-1991 Commodore-Amiga, Inc.
  14. **        All Rights Reserved
  15. */
  16.  
  17. #ifndef EXEC_NODES_H
  18. #include <exec/nodes.h>
  19. #endif
  20.  
  21. /*
  22. *    The 'Init' entries are only used if the corresponding
  23. *    bit is set in the Flags field.
  24. *
  25. *    So if you are just a 68881, you do not need the Init stuff
  26. *    just make sure you have cleared the Flags field.
  27. *
  28. *    This should allow us to add Extended Precision later.
  29. *
  30. *    For Init users, if you need to be called whenever a task
  31. *    opens this library for use, you need to change the appropriate
  32. *    entries in MathIEEELibrary.
  33. */
  34.  
  35. struct MathIEEEResource
  36. {
  37.     struct    Node    MathIEEEResource_Node;
  38.     unsigned short    MathIEEEResource_Flags;
  39.     unsigned short    *MathIEEEResource_BaseAddr; /* ptr to 881 if exists */
  40.     void    (*MathIEEEResource_DblBasInit)();
  41.     void    (*MathIEEEResource_DblTransInit)();
  42.     void    (*MathIEEEResource_SglBasInit)();
  43.     void    (*MathIEEEResource_SglTransInit)();
  44.     void    (*MathIEEEResource_ExtBasInit)();
  45.     void    (*MathIEEEResource_ExtTransInit)();
  46. };
  47.  
  48. /* definations for MathIEEEResource_FLAGS */
  49. #define    MATHIEEERESOURCEF_DBLBAS    (1<<0)
  50. #define    MATHIEEERESOURCEF_DBLTRANS    (1<<1)
  51. #define    MATHIEEERESOURCEF_SGLBAS    (1<<2)
  52. #define    MATHIEEERESOURCEF_SGLTRANS    (1<<3)
  53. #define    MATHIEEERESOURCEF_EXTBAS    (1<<4)
  54. #define    MATHIEEERESOURCEF_EXTTRANS    (1<<5)
  55.  
  56. #endif    /* RESOURCES_MATHRESOURCE_H */
  57.